import authRequest from "@/api/backend/base/auth.js";



export  function login(data){
    
    return authRequest.post("/login",data)
}


export function logout(){
    return authRequest.get("/logout")
}


export function sendEmailCode(email){
    return authRequest.get("/email_code/send?email="+email)
}


export function sendMobileCode(phone){
    return authRequest.get("/mobile_code/send?mobile="+phone)
}